﻿@using LastoRevival.Service.Contracts.Models;

@{
	ViewBag.Title = "Confirm forum deletion";

	this.AddIndexBreadCrumb();
	this.AddForumBreadCrumb((int)ViewBag.ForumID);
	this.AddCurrentBreadCrumb("Delete");
	
}

<script type="text/javascript">

	function backToForum()
	{
		window.location.href = "@Url.Action("ViewForum", "Forum", new { forumID = ViewBag.ForumID })";
	}

</script>

<h2 style="line-height: 1.4em;">
	Are you sure you want to delete the forum '@ViewBag.ForumTitle'? <br />
	All messages in forum will be lost. <br />
	This action cannot be undone.
</h2>
<br />
<br />
<form action="@Url.Action("DeleteForum", "Admin")" method="post">
	<input type="hidden" name="ForumID" value="@ViewBag.ForumID" />
	<button type="submit">Yes, delete this forum</button>
	<button type="button" onclick="backToForum();">No, get me out of here</button>

</form>